<?php
/**
 * Created by PhpStorm.
 * User: liyu
 * Date: 2018/4/9
 * Time: 下午1:58
 */

namespace app\api\validate;


use app\common\validate\BaseValidate;

class UserValidate extends BaseValidate
{
    protected $rule = [
        'guid' => 'require',
        'login_name' => 'require',
        'name' => 'require',
        'password' => 'require',
        'org_id' => 'require',
        'enabled' => 'require',
        'gender' => 'require',
        'birthday' => 'require',
        'id_card_number' => 'require',
        'tel' => 'require',
        'page' => 'require'
    ];

    protected $scene = [
        'login' => ['login_name','password'],
        'add' => ['login_name','name','org_id','tel'],
        'update' => ['guid'],
        'getMyInfo' => ['guid'],
        'getList' => ['page']
    ];
}